/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.testis.gui.mvc.controller.testdesign;

import org.testis.gui.mvc.controller.AbstractController;

/**
 *
 * @author selcuk
 */
public class LabelFilterController extends AbstractController {

    public static final String ERROR_PROPERTY = "LastError";

    public LabelFilterController() {
        super();
    }

    /*
    public void operationAddLabelFilter(String name, String filterExpression) {
        LabelFilterDataHandler handler = new LabelFilterDataHandler();
        if (handler.addLabelFilter(name, filterExpression) != 0) {
        } else {
            setModelProperty(ERROR_PROPERTY, "Unable to add label fiter...");
        }
    }

    public void operationUpdateLabelFilter(int id, String name, String expression) {
        LabelFilterDataHandler handler = new LabelFilterDataHandler();
        if (!handler.saveLabelFilter(id, name, expression)) {
            setModelProperty(ERROR_PROPERTY, "Unable to update label fiter...");
        }
    }
     */
}
